import cv2
import numpy as np

image = cv2.imread('zaodian.jpg')

kernel = np.ones((5,5), np.uint8)

closed = cv2.morphologyEx(
    image,
    cv2.MORPH_CLOSE,
    kernel
)


cv2.imshow('Closed', closed)
cv2.imwrite('zapdian1.jpg',closed)
cv2.waitKey(0)